/*
 * Created on 2006-9-28
 *
 */
package edu.pku.sei.modeler.locator;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;

import edu.pku.sei.modeler.model.structure.CustomerLocatorAdapter;

/**
 * @author zhangle
 * @author xy
 */
public class CustomerLocatorItem extends CTabItem {
	private CustomerLocatorAdapter cLocator;
	
	public CustomerLocatorItem(CTabFolder parent, int style, CustomerLocatorAdapter cLocator) {
		super(parent, style);
		this.cLocator = cLocator;
	}
	
	public void createControl() {
		Composite container = new Composite(getParent(), SWT.NONE);
		setControl(container);
		final GridLayout gridLayout = new GridLayout();
		gridLayout.verticalSpacing = 5;
		gridLayout.marginHeight = 5;
		gridLayout.numColumns = 2;
		container.setLayout(gridLayout);
		
		Label label = new Label(container, SWT.NONE);
		label.setText("customer: ");
		label.setLayoutData(new GridData());
	}
}
